Added device-sharing checks for loopback-mounted files. The existing
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Sun, 27 Nov 2005 00:56:34 +0000 (00:56 +0000)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Sun, 27 Nov 2005 00:56:34 +0000 (00:56 +0000)
commit9e1ac75bfa019284e0afb13f0f2199980cd95ca7
tree7f4635dc317552ee55736f0af0317c501ccb6e1b
parent85626c44fa73be84ba659177f5b83febb03b0c59
Added device-sharing checks for loopback-mounted files.  The existing
check_sharing functions have been rejigged slightly so that the file-specific
stuff can share the code therein.  This separates the actual test from the
generation of the error message, and introduces the canonicalise_mode function.

This also restores the broken teardown functionality for file: devices -- the
writing of XENBUS_PATH/node had been removed, but this is required for file
device teardown.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/examples/block